QT       += core gui network script printsupport serialbus multimedia serialport xml


TARGET = PowerMaster

 DEFINES += SERIAL

 #DEFINES += TEST

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# QMAKE_CXXFLAGS += -source-charset UTF-8

# QMAKE_CXXFLAGS += -execution-charset UTF-8

CONFIG(release, debug|release):  DESTDIR =  $$PWD/../../bin_Release/

else: CONFIG(debug, debug|release):  DESTDIR =  $$PWD/../../bin_Debug/

include($$PWD/../lib_src/libs.pri)


#include($$PWD/comm/comm.pri )

#include($$PWD/widget/widget.pri)

#include ($$PWD/../gpioTool/gpioTool.pri)

#include ($$PWD/../SerialTool/SerialTool.pri)

INCLUDEPATH += $$PWD/net

INCLUDEPATH += $$PWD/base

INCLUDEPATH += $$PWD/qextserialport

#INCLUDEPATH += $$PWD/../CPS_Nodes

INCLUDEPATH += $$PWD/widget

LIBS += -lshell32


#DEFINES +=  NODE_EDITOR_STATIC
#DEFINES += LOG4QT_STATIC _QT_NODES LOG4QT_LIBRARY

CONFIG(release, debug|release)
{
#  QMAKE_LFLAGS += /MINIFESTUAC:\"level=\'requireAdministrator\' uiAccess=\'false\'\"
#   QMAKE_LFLAGS += /MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\"
}


# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    EPowerApp.cpp \
    dialog_485_setting.cpp \
    dialog_can_setting.cpp \
    dialog_ethernet_setting.cpp \
    dialog_handheld_command.cpp \
    dialog_log.cpp \
    dialog_nuf_bus_main.cpp \
    dialog_nuf_bus_slave.cpp \
    dialog_select_com.cpp \
    form485.cpp \
    form_alert.cpp \
    form_health.cpp \
    form_info.cpp \
    form_log.cpp \
    form_net_data.cpp \
    form_setting.cpp \
    main.cpp \
    # mainscene.cpp \
    # mainview.cpp \
    mainwindow.cpp \
    sortlogmodel.cpp \
    widget/class_Charts/chart_base.cpp \
    widget/class_Charts/chart_diamond.cpp \
    widget/class_Charts/chart_ellipse.cpp \
    widget/class_Charts/chart_label.cpp \
    widget/class_Charts/chart_line.cpp \
    widget/class_Charts/chart_plaintext.cpp \
    widget/class_Charts/chart_rect.cpp \
    widget/class_Charts/chart_roundrect.cpp \
    widget/class_Charts/chart_trapezoid.cpp \
     dialog_nuf_bus_setting.cpp \
    widget/flowchart.cpp \
    widget/ipaddress.cpp \
    widget/label_485.cpp \
    widget/label_can.cpp \
    widget/label_net.cpp \
    widget/log_textbrowser.cpp \
    widget/page_info_1.cpp \
    widget/page_info_2.cpp \
    widget/page_info_3.cpp \
    widget/tool_tipper.cpp \
    widget/widget_charts.cpp \
    widget/widget_flow.cpp \
    widget/widget_magnetic.cpp \
    widget/widget_power.cpp \
    widget/widget_pump_valve.cpp \
    widget/widget_startup.cpp \
    widget/widget_topo_graph.cpp

HEADERS += \
    EPowerApp.h \
    PowerUpper.rc \
    dialog_485_setting.h \
    dialog_can_setting.h \
    dialog_ethernet_setting.h \
    dialog_handheld_command.h \
    dialog_log.h \
    dialog_nuf_bus_main.h \
    dialog_nuf_bus_slave.h \
    dialog_select_com.h \
    form485.h \
    form_alert.h \
    form_health.h \
    form_info.h \
    form_log.h \
    form_net_data.h \
    form_setting.h \
    # mainscene.h \
    # mainview.h \
    mainwindow.h \
    sortlogmodel.h \
    widget/class_Charts/chart_base.h \
    widget/class_Charts/chart_diamond.h \
    widget/class_Charts/chart_ellipse.h \
    widget/class_Charts/chart_label.h \
    widget/class_Charts/chart_line.h \
    widget/class_Charts/chart_plaintext.h \
    widget/class_Charts/chart_rect.h \
    widget/class_Charts/chart_roundrect.h \
    widget/class_Charts/chart_trapezoid.h \
    widget/comdef.h \
     dialog_nuf_bus_setting.h \
    widget/flowchart.h \
    widget/ipaddress.h \
    widget/label_485.h \
    widget/label_can.h \
    widget/label_net.h \
    widget/log_textbrowser.h \
    widget/page_info_1.h \
    widget/page_info_2.h \
    widget/page_info_3.h \
    widget/tool_tipper.h \
    widget/widget_charts.h \
    widget/widget_flow.h \
    widget/widget_magnetic.h \
    widget/widget_power.h \
    widget/widget_pump_valve.h \
    widget/widget_startup.h \
    widget/widget_topo_graph.h

FORMS += \
    dialog_485_setting.ui \
    dialog_can_setting.ui \
    dialog_ethernet_setting.ui \
    dialog_handheld_command.ui \
    dialog_log.ui \
    dialog_nuf_bus_main.ui \
    dialog_nuf_bus_slave.ui \
    dialog_select_com.ui \
    form485.ui \
    form_alert.ui \
    form_health.ui \
    form_info.ui \
    form_log.ui \
    form_net_data.ui \
    form_setting.ui \
    mainwindow.ui \
    dialog_nuf_bus_setting.ui \
    widget/page_info_1.ui \
    widget/page_info_2.ui \
    widget/page_info_3.ui \
    widget/widget_charts.ui \
    widget/widget_flow.ui \
    widget/widget_magnetic.ui \
    widget/widget_power.ui \
    widget/widget_pump_valve.ui \
    widget/widget_startup.ui \
    widget/widget_topo_graph.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
resources/Skin.qrc \
    resources/icons.qrc \
resources/ui.qrc \
    widget/res.qrc

RC_FILE = PowerUpper.rc




